<?php

namespace App\Models\Api;

use Illuminate\Database\Eloquent\Model;

class CollArea extends Model
{
    //
    /**
     * 关联到模型的数据表
     *
     * @var string
     */
    protected $table = 'coll_area';

    /**
     * The attributes that should be hidden for arrays.
     * 隐藏字段
     * @var array
     */
    protected $hidden = ['id', 'sort'];

    public function getNameAttribute($value)
    {
        return trim($value);
    }
}
